// subpkg/test/test.js

import { request } from "../../request/index2.js"
const app = getApp()
Page({
    data:{
        shijuanName:'',
        shujuantype:"",
        // index:0
    },
    onLoad(options){
        console.log(options);
        let shujuantype = options.paperTable
        let shijuanName = options.paperName
        // console.log(shujuantype);
        if(shujuantype){
            this.setData({shujuantype,shijuanName})
        }
        
        
        
        // request({
        //     url:app.globalData.baseUrl+"/paper/getAllPaper"
        // }).then((res)=>{
          
        // })
        
    },
  jump(e){
      console.log(e);
    let data = e.currentTarget.dataset.index
    // console.log(data);
      wx.navigateTo({
        url: `/subpkg/start/start?paperTable=${data}`,
      })
  }
})